#include <iostream>
using namespace std;
class Point
{
public:
	Point() 
	{
		X = Y = 0; 
	}
	Point(unsigned x, unsigned y) 
	{
		X = x;
		Y = y;
	}
	unsigned x() 
	{ 
		return X; 
	}
	unsigned y() 
	{ 
		return Y;
	}

	void Print()
	{
		cout<<"Point("<<X<<","<<Y<<")"<<endl; 
	}
	friend Point operator+(Point &pt, int n0ffset); 
	friend Point operator+(int n0ffset, Point &pt);
private:
	unsigned X;
	unsigned Y;
};
Point operator+(Point &pt, int nOffset)
{
	Point ptTemp = pt; 
	ptTemp.X += nOffset; 
	ptTemp.Y += nOffset;
	return ptTemp;
}

Point operator+(int nOffset, Point& pt)
{
	Point ptTemp = pt; 
	ptTemp.X += nOffset; 
	ptTemp.Y += nOffset;
	return ptTemp;
}

void main()
{
	Point pt(6,6);
	pt.Print();
	pt = pt + 10; 
	pt.Print();
	pt = 10 + pt; 
	pt.Print();
}